from HTCPDevice import *

class HTCPDevWater(HTCPDevice):
    def __init__(self):
        self.DID = ''
        self.value = 0.0
        self.status = 0 #0-offline, 1-start, 2-stop
        self.sock=None

    def setDevID(self, did):
        self.DID = did

    def getDevID(self):
        return self.DID

    def getValue(self):
        return self.value

    def setValue(self, value):
        self.value = value

    def setStatus(self, sta):
        self.status = sta

    def getStatus(self):
        return self.status
        
